home *** CD-ROM | disk | FTP | other *** search
/ ftp.cs.arizona.edu / ftp.cs.arizona.edu.tar / ftp.cs.arizona.edu / icon / newsgrp / group00b.txt / 000175_icon-group-sender_Mon Dec 18 14:14:34 2000.msg < prev    next >
Internet Message Format  |  2001-01-03  |  1KB

  1. Return-Path: <icon-group-sender>
  2. Received: (from root@localhost)
  3.     by baskerville.CS.Arizona.EDU (8.11.1/8.11.1) id eBILE3c09757
  4.     for icon-group-addresses; Mon, 18 Dec 2000 14:14:03 -0700 (MST)
  5. Message-Id: <200012182114.eBILE3c09757@baskerville.CS.Arizona.EDU>
  6. Date: Mon, 18 Dec 2000 20:01:03 +0100 (CET)
  7. From: <ethanak@mail.jubiler.pl>
  8. To: icon-group@cs.arizona.edu
  9. Subject: Re: Stepping
  10. Errors-To: icon-group-errors@cs.arizona.edu
  11. Status: RO
  12. Content-Length: 594
  13.  
  14. On Fri, 15 Dec 2000, Steve Wampler wrote:
  15.  
  16. > On Fri, Dec 15, 2000 at 08:12:26PM -0000, John Sampson wrote:
  17. > > 
  18. > > dummy := read()
  19. > > 
  20. [...]
  21. > > 
  22. > > if dummy == "q" then stop
  23.  
  24. [cut out something]
  25.  
  26. May be it will help:
  27.  
  28.    if read() == "q" then stop("As you wish")
  29.  
  30. In this case the condition will be true ONLY if you really enter "q".
  31. If you will enter ^d, read() will fail and then all condition will fail.
  32.  
  33. In real life - it's better:
  34.  
  35.    if upto('q',read()) then ...
  36.  
  37. or something similar :)
  38.  
  39. Regards
  40.  
  41. ethanak
  42. http://ethanak.i.sex.pl
  43.  
  44. PS. Sorry, i can READ in English, but not WRITE :(
  45.  
  46.